package com.shigen.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 一级菜单
 * </p>
 *
 * @author shigen.fu
 * @since 2022-06-04
 */
@TableName("first_menu")
@ApiModel(value = "FirstMenu对象", description = "一级菜单")
@Data
@Accessors(chain = true)
public class FirstMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("一级菜单项的ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("一级菜单显示的icon")
    private String icon;

    @ApiModelProperty("一级菜单的链接地址")
    private String url;

    @ApiModelProperty("一级菜单项显示的文字")
    private String name;

    @ApiModelProperty(value = "所有的二级菜单")
    @TableField(exist = false)
    private List<SecondMenu> secondMenus;
}
